'''
Created on Oct 27, 2013

@author: gjia
'''
import sys

#print('vjMapper start..')
for line in sys.stdin:
    line = line.strip()
    
    words = line.split()
    
    for word in words:
        print( '%s\t%s' % (word, "1") )